package co.yixiang.modules.shop.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import co.yixiang.modules.shop.entity.YxStoreProductCheckmake;
import co.yixiang.modules.shop.web.param.YxStoreProductCheckmakeQueryParam;
import co.yixiang.modules.shop.web.vo.YxStoreProductCheckmakeQueryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author frq
 * @since 2020-07-16
 */
@Repository
public interface YxStoreProductCheckmakeMapper extends BaseMapper<YxStoreProductCheckmake> {

    /**
     * 根据ID获取查询对象
     * @param id
     * @return
     */
    YxStoreProductCheckmakeQueryVo getYxStoreProductCheckmakeById(Serializable id);

    /**
     * 获取分页对象
     * @param page
     * @param yxStoreProductCheckmakeQueryParam
     * @return
     */
    IPage<YxStoreProductCheckmakeQueryVo> getYxStoreProductCheckmakePageList(@Param("page") Page page, @Param("param") YxStoreProductCheckmakeQueryParam yxStoreProductCheckmakeQueryParam);
    /**
     * 查询盘点信息
     * @param param
     * @return
     */
    List<YxStoreProductCheckmakeQueryVo> findInventory(YxStoreProductCheckmakeQueryParam param);
}
